package com.aaron.Caitlyn.system.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aaron.Caitlyn.system.dao.LoginMapper;
import com.aaron.Caitlyn.system.pojo.SystemMenu;
import com.aaron.Caitlyn.system.service.LoginService;


@Service("loginService")
public class LoginServiceImpl implements LoginService {
	protected final Logger logger = LoggerFactory.getLogger(this.getClass());
	
	@Autowired
	private LoginMapper loginMapper;

	@Override
	public List<SystemMenu> getAllSystemMenu(SystemMenu menu) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("menu", menu);
		return loginMapper.getAllSystemMenu(map);
	}

	
}
